<?php

namespace App\Home\Filters;

use Illuminate\Http\Request;

class WorshipBibleChapterFilter extends Filter
{
public $filterRules = <<< EOF
{
    "id": [
        "equal",
        "?"
    ],
    "volume_id": [
        "equal",
        "?"
    ],
    "chapter_id": [
        "equal",
        "?"
    ],
    "verse_id": [
        "equal",
        "?"
    ],
    "lection": [
        "like",
        "%?%"
    ],
    "sound_begin": [
        "equal",
        "?"
    ],
    "sound_end": [
        "equal",
        "?"
    ],
    "created_at": [
        "equal",
        "?"
    ],
    "updated_at": [
        "equal",
        "?"
    ],
    "deleted_at": [
        "equal",
        "?"
    ]
}
EOF;   

    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->simpleFilters = json_decode($this->filterRules, true);
    }
}
